package JavaSE.d3;

import JavaSE.d2.MyPoint;

public class Test6 {
    public static void main(String[] args) {
        //新建一个点对象，代表圆心点0,0
        MyPoint point0 = new MyPoint(0,0);
        //新建一个圆对象，将点对象传入确立圆心点
        Circle circle = new Circle(point0);
        //画一个半径10的圆
        circle.R=10;
        //新建一个点对象，测试落点10,10
        MyPoint myPoint1 = new MyPoint();
        myPoint1.setX(10);
        myPoint1.setY(0);
        //调用方法测试点对象是否位于圆内
        boolean N=circle.inCircle(myPoint1);
        //输出结果
        System.out.println(N);
    }
}
